package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;

import lombok.*;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合班表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("class_merge")
public class ClassMerge {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 新班级id
     */
    private Integer newClassId;

    /**
     * 被合并班级id
     */
    private Integer mergeClassId;

    /**
     * 合班时间
     */
    private LocalDateTime mergeTime;

    /**
     * 录入人
     */
    private Integer inputId;

    /**
     * 删除
     */
    @TableLogic
    private Boolean enable;

    @TableField(exist = false)
    private Teacher teacher;

    @TableField(exist = false)
    private Classes newClass;

    @TableField(exist = false)
    private Classes mergeClass;

}
